package cn.itsource.system;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//网管  类似于一个负载均衡器，扶着拦截 资源的分配
@SpringBootApplication
//开启事务管理器
@EnableTransactionManagement
//扫描接口包
@MapperScan("cn.itsource.system.mapper")
@EnableFeignClients("cn.itsource.feignclient")
public class Application2010
{
    public static void main( String[] args )
    {
        SpringApplication.run(Application2010.class);
    }
//    分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}